package com.itheima.utils;

public class PageUtils {
    /*
    分页查询计算总页数
     */
    public static int PageCount(Integer pageSize,Integer total){
       return total % pageSize == 0 ? total/pageSize : total/pageSize + 1;
    }
}
